package enums;

/***
 * 水果类型，价格，打折
 */
public enum FruitType {
    APPLE("apple",8.0,1.0),
    STRAWBERRY("strawberry",13.0,0.8),
    MANGO("mango",20.0,1.0);

    String fruitName;//水果名称
    Double price;//水果价格
    Double promotionPrice;//折扣

    FruitType(String fruitName, Double price,Double promotionPrice) {
        this.fruitName = fruitName;
        this.price = price;
        this.promotionPrice=promotionPrice;
    }

    public String getFruitName() {
        return fruitName;
    }

    public void setFruitName(String fruitName) {
        this.fruitName = fruitName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(Double promotionPrice) {
        this.promotionPrice = promotionPrice;
    }
}
